package guowenlong.golf.ui.court;

import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import butterknife.BindView;
import butterknife.Unbinder;
import guowenlong.golf.R;
import guowenlong.golf.base.BaseFragment;

/**
 * des   : 描述
 * author: Administrator
 * email : guowenlong20000@gmail.com
 * time  : 2017年04月14日 下午 11:09.
 */

public class CourtNearFragment extends BaseFragment {

  @BindView(R.id.lv_court_near)
  ListView lvCourtNear;
  Unbinder unbinder;

  @Override
  public int getLayoutId() {
    return R.layout.fragment_court_near;
  }

  @Override
  public void initData(Bundle savedInstanceState) {

  }

  @Override
  public void initView() {
    lvCourtNear.setAdapter(new NearAdapter());
  }

  public class NearAdapter extends BaseAdapter {

    @Override
    public int getCount() {
      return 10;
    }

    @Override
    public Object getItem(int position) {
      return null;
    }

    @Override
    public long getItemId(int position) {
      return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
      if (convertView == null) {
        convertView = View.inflate(getActivity(), R.layout.item_court_near, null);
      }
      return convertView;
    }
  }
}
